package com.rc.saas.tenant.vo.hlht;

import com.rc.saas.tenant.common.enums.ElecPileStopReasonEnum;
import com.rc.saas.tenant.model.order.OrderInfo;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;

public class HlhtOrderVo extends OrderInfo {

    private String stationName;
    private String pileNo;
    private String gunNo;
    private String nickname;
    private String mobile;
    private String tenantName;
    private String carNumber;
    private String chargeType;
    private String hlhtTenantName;
    private String hlhtOperatorName;
    private String epName;

    private BigDecimal power;
    private BigDecimal elecAmount;
    private BigDecimal serviceAmount;

    private String pileStopReasonVo;

    private String lastTime;

    private String discountType;

    private BigDecimal lowPower;
    private BigDecimal highPower;
    private BigDecimal flatPower;
    private BigDecimal lowBaseAmount;
    private BigDecimal highBaseAmount;
    private BigDecimal flatBaseAmount;
    private BigDecimal lowServiceAmount;
    private BigDecimal highServiceAmount;
    private BigDecimal flatServiceAmount;
    private String orderInfoHlhtType;
    private String companyName;

    private String brandName;

    public String getLastTime() {
        Date date = new Date();
        if (this.getEndTime() != null && this.getStartTime() != null) {
            long l = this.getEndTime().getTime() - this.getStartTime().getTime();
            SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
            //八个小时的时差
            date.setTime(l - (1000 * 60 * 60 * 8));
            String format = sdf.format(date);
            return format;
        } else {
            return null;
        }

    }

    public String getPileStopReasonVo() {
        //桩停止原因
        String elecPileStopReasonResult = ElecPileStopReasonEnum.getElecPileStopReasonResult(this.getPileStopReason());
        return elecPileStopReasonResult;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getOrderInfoHlhtType() {
        return orderInfoHlhtType;
    }

    public void setOrderInfoHlhtType(String orderInfoHlhtType) {
        this.orderInfoHlhtType = orderInfoHlhtType;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getPileNo() {
        return pileNo;
    }

    public void setPileNo(String pileNo) {
        this.pileNo = pileNo;
    }

    public String getGunNo() {
        return gunNo;
    }

    public void setGunNo(String gunNo) {
        this.gunNo = gunNo;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getChargeType() {
        return chargeType;
    }

    public void setChargeType(String chargeType) {
        this.chargeType = chargeType;
    }

    public String getHlhtTenantName() {
        return hlhtTenantName;
    }

    public void setHlhtTenantName(String hlhtTenantName) {
        this.hlhtTenantName = hlhtTenantName;
    }

    public String getHlhtOperatorName() {
        return hlhtOperatorName;
    }

    public void setHlhtOperatorName(String hlhtOperatorName) {
        this.hlhtOperatorName = hlhtOperatorName;
    }

    public String getEpName() {
        return epName;
    }

    public void setEpName(String epName) {
        this.epName = epName;
    }

    public BigDecimal getPower() {
        return power;
    }

    public void setPower(BigDecimal power) {
        this.power = power;
    }

    public BigDecimal getElecAmount() {
        return elecAmount;
    }

    public void setElecAmount(BigDecimal elecAmount) {
        this.elecAmount = elecAmount;
    }

    public BigDecimal getServiceAmount() {
        return serviceAmount;
    }

    public void setServiceAmount(BigDecimal serviceAmount) {
        this.serviceAmount = serviceAmount;
    }

    public void setPileStopReasonVo(String pileStopReasonVo) {
        this.pileStopReasonVo = pileStopReasonVo;
    }

    public void setLastTime(String lastTime) {
        this.lastTime = lastTime;
    }

    public String getDiscountType() {
        return discountType;
    }

    public void setDiscountType(String discountType) {
        this.discountType = discountType;
    }

    public BigDecimal getLowPower() {
        return lowPower;
    }

    public void setLowPower(BigDecimal lowPower) {
        this.lowPower = lowPower;
    }

    public BigDecimal getHighPower() {
        return highPower;
    }

    public void setHighPower(BigDecimal highPower) {
        this.highPower = highPower;
    }

    public BigDecimal getFlatPower() {
        return flatPower;
    }

    public void setFlatPower(BigDecimal flatPower) {
        this.flatPower = flatPower;
    }

    public BigDecimal getLowBaseAmount() {
        return lowBaseAmount;
    }

    public void setLowBaseAmount(BigDecimal lowBaseAmount) {
        this.lowBaseAmount = lowBaseAmount;
    }

    public BigDecimal getHighBaseAmount() {
        return highBaseAmount;
    }

    public void setHighBaseAmount(BigDecimal highBaseAmount) {
        this.highBaseAmount = highBaseAmount;
    }

    public BigDecimal getFlatBaseAmount() {
        return flatBaseAmount;
    }

    public void setFlatBaseAmount(BigDecimal flatBaseAmount) {
        this.flatBaseAmount = flatBaseAmount;
    }

    public BigDecimal getLowServiceAmount() {
        return lowServiceAmount;
    }

    public void setLowServiceAmount(BigDecimal lowServiceAmount) {
        this.lowServiceAmount = lowServiceAmount;
    }

    public BigDecimal getHighServiceAmount() {
        return highServiceAmount;
    }

    public void setHighServiceAmount(BigDecimal highServiceAmount) {
        this.highServiceAmount = highServiceAmount;
    }

    public BigDecimal getFlatServiceAmount() {
        return flatServiceAmount;
    }

    public void setFlatServiceAmount(BigDecimal flatServiceAmount) {
        this.flatServiceAmount = flatServiceAmount;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }
}
